import jieba
jieba.setLogLevel(jieba.logging.INFO)
with open('十四五规划.txt','r') as file:
    text=file.read()
words=jieba.lcut(text)
print(words)
word_counts={}
w=str('十三')
for w in words:
    if len('w')>1:
        word_counts['w']=word_counts.get('w',0)+1
print(word_counts)
word_counts=dict(sorted(word_counts.items(),key=lambda item:item[1],reverse=True))
print(word_counts)
。15以下的为正确
import jieba
with open('十四五规划.txt','r') as file:
    text=file.read()
words=jieba.lcut(text)
print(words)
word_counts={}
for word in words:
    if len(word)>1:
        word_counts[word]=word_counts.get(word,0) +1
print(word_counts)
word_countss=dict(sorted(word_counts.items(),key=lambda item:item[1],reverse=True))
print(word_countss)